﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace NimbleTextKeygen
{
    [Obfuscation(Feature = "renaming", ApplyToMembers = true, Exclude = true)]
    public class Snippet
    {
        public string Name
        {
            get;
            set;
        }

        public string TooltipText
        {
            get;
            set;
        }

        public string Value
        {
            get;
            set;
        }

        public string VersionUpdated
        {
            get;
            set;
        }

        public Snippet()
        {
        }

        public override string ToString()
        {
            string name = this.Name;
            if (name.StartsWith("--") && name.EndsWith("--"))
            {
                name = name.Trim(new char[] { '-' });
            }
            return name;
        }
    }
}
